package cn.nubia.admin.application.query;

import cn.nubia.admin.common.query.PageQueryParam;
import cn.nubia.admin.common.utils.DateUtil;

import java.util.Date;

/**
 * Created by justin on 15/7/12.
 */
public class FeedbackQuery extends PageQueryParam {

    private Integer status;//状态(-1 删除 0正常 1已回复 )

    private String marketVersion;//软件版本

    private Date createTimes;
    private Date createTimee;

    private String createTimeRange;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMarketVersion() {
        return marketVersion;
    }

    public void setMarketVersion(String marketVersion) {
        this.marketVersion = marketVersion;
    }

    public Date getCreateTimes() {
        return createTimes;
    }

    public void setCreateTimes(Date createTimes) {
        this.createTimes = createTimes;
    }

    public Date getCreateTimee() {
        return createTimee;
    }

    public void setCreateTimee(Date createTimee) {
        this.createTimee = createTimee;

    }

    public String getCreateTimeRange() {
        return createTimeRange;

    }

    public void setCreateTimeRange(String createTimeRange) {
        this.createTimeRange = createTimeRange;
        if(createTimeRange!=null && !"".equals(createTimeRange)){
            this.setCreateTimes(DateUtil.getBeginDateFromRange(createTimeRange));
            this.setCreateTimee(DateUtil.getEndDateFromRage(createTimeRange));
        }
    }
}
